<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://www.springframework.org/security/tags" prefix="security" %>
<!-- 分配权限保存的按钮 -->
<c:set var="ASSIGN_AUTH_SAVE_BUTTON" value="${CODE_AUTH.menu_assign_auth_button}" ></c:set>
<!-- 是否有分配权限保存的权限 -->				
<security:authorize var="HAS_AUTH_ASSIGN_AUTH_SAVE" access="${ASSIGN_AUTH_SAVE_BUTTON.SPEL}"></security:authorize>					
<div id="assignAuthModal" class="modal fade" tabindex="-1" role="dialog">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title">尚筹网系统弹窗</h4>
      </div>
      <div class="modal-body">
        <form>
        	<!-- 当前菜单信息 -->
        	<div>
        	菜单名称：<span id="menuName"></span>
        	<br>
        	菜单地址：<span id="menuUrl"></span>
        	</div>
        	<!-- 提示信息 -->
        	<p class="bg-danger" style="padding: 15px;">提示：只要有任意一个选中的权限，用户就能看见这个菜单。</p>
			<!-- 树形结构 -->
			<ul id="authTreeDemo" class="ztree"></ul>
		</form>
      </div>
      <div class="modal-footer">
      	<security:authorize access="${HAS_AUTH_ASSIGN_AUTH_SAVE}">
        	<button id="saveAuthBtn" type="button" 
        		class="${ASSIGN_AUTH_SAVE_BUTTON.BUTTON_CLASS }"> 好的，我设置好了！执行分配！
        		<i class="${ASSIGN_AUTH_SAVE_BUTTON.ICON_CLASS }"></i>
       		</button>
      	</security:authorize>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->